﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using JM.JCY.BusinessEntity;

namespace JM.JCY.Common
{
   public interface INewsfeed
    {
       void InsertFeedPost(NewsfeedDataSet ds);
       NewsfeedDataSet.T_FeedPostDataTable GetFeedPostEntity(int feedPostId);
       NewsfeedDataSet.T_FeedCommentDataTable InsertComment(NewsfeedDataSet ds);
       NewsfeedDataSet.T_FeedCommentDataTable GetFeedCommentEntity(int commentId);
       NewsfeedDataSet.T_FeedCommentDataTable GetMoreCommentsByObj(int objId, int dataNum);
       bool DeletePostCommentById(int commentId);
       NewsfeedDataSet.T_FeedPostDataTable GetFeedPostByObjectId(int objId);
       NewsfeedDataSet.T_FeedPostDataTable GetFeedPost(string appType, int appId, string excludePostId);
       NewsfeedDataSet.T_FeedCommentDataTable GetFeedCommentByNewsfeedId(int newsfeedId);
       DateTime GetFeedPostLastestUpdateTime(int feedPostId);
       NewsfeedDataSet.T_FeedCommentDataTable GetPostCommentByPostId(int feedpostId, int dataNum);
       void DeleteFeedPost(int feedpostId);
       DateTime GetLatestFeedPostUpdateTime(string appType, int appId);
       NewsfeedDataSet.T_UserInfoDataTable GetUserInfoEntity(int userId);
       NewsfeedDataSet.T_FeedPostDataTable GetMoreFeedPost(string appType, int appId, string excludePostId);

    }
}
